package day09_modi.demo13_Peptides;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        System.out.println("欢迎来到宠物店");
        Person person = new Person();
        System.out.println("1.猫 2.狗");
        Cat cat=new Cat(2,"xiaohua","雌","波斯猫","白色");
        Dog dog=new Dog(2,"xiaojiji","雄","土狗");
        Scanner scanner = new Scanner(System.in);
        int i=scanner.nextInt();
        switch (i){
            case 1:
                person.setAnimal(cat);
                break;
            case 2:
                person.setAnimal(dog);
                break;
        }
        person.feed();
        person.playing();
    }
}
